package com.xbf.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xbf.entity.Goods;

import java.util.List;

public interface GoodsService extends IService<Goods> {
    boolean reduceStock(Integer goodsId, Integer quantity);
    // 新增获取所有商品的方法
    List<Goods> getAllGoods();
}